using EasyGameTemplate;
using UnityEngine;
using UnityEngine.Serialization;

public class GameLight : GamePoolAbstract
{

    public LineRenderer LineRenderer;

    public override void Pool_Enable()
    {
        this.LineRenderer.SetPositions(new[]
                                       {
                                           Vector3.zero, Vector3.zero
                                       });
        base.Pool_Enable();
    }

    public void UpdateLight(Vector2Int startPos, Vector2Int target)
    {
        this.LineRenderer.SetPositions(new[]
                                       {
                                           GameManager.ToV3(startPos , 0.25f),
                                           GameManager.ToV3(target , 0.25f)
                                       });
    }
}